﻿using System.Web;

namespace Quail
{
    public interface IWebCookie
    {
        /// <summary>
        /// Returns the cookies on the current page
        /// </summary>
        /// <returns>A cookie collection</returns>
        HttpCookieCollection GetCookies();

        /// <summary>
        /// Checks to see if a cookie is present
        /// </summary>
        /// <param name="name">Name of the cookie</param>
        /// <returns>True if the cookie exists</returns>
        bool DoesCookieExist(string name);

        /// <summary>
        /// Returns a cookie's value
        /// </summary>
        /// <param name="name">Name of the cookie</param>
        /// <returns>The cookie value</returns>
        string GetCookieValue(string name);

        /// <summary>
        /// Attempts to delete a cookie
        /// </summary>
        /// <param name="name">name of the cookie to delete</param>
        void DeleteCookie(string name);
    }
}
